<template>
  <div class="bar">
    <div class="right">
      <t-button theme="primary" @click="form.open()">
        <template #icon><t-icon name="assignment" /></template>
        {{ plugin.t('create') }}
      </t-button>
    </div>
    <div class="title">{{ plugin.t('name') }}</div>
  </div>
  <List />
  <Form ref="form" />
</template>
<script setup>
  import { ref } from 'vue'
  import index from '../index'
  import List from './list.vue'
  import Form from './form.vue'

  const plugin = index.plugin
  const form = ref()

</script>